package com.example.anno;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @Date 2022/1/16
 * @Created by Jonathan
 */
@Configuration
@ComponentScan("com.example.anno")
@PropertySource("classpath:appconfig.properties")
public class AppConfig {

	@Value("${xiaoming.id}")
	private Integer id;
}
